package bean;

public class ChiTietNhapHang extends Master {

    private int matHangID;
    private int sizeID;
    private int hoaDonID;
    private int soLuong;
    private double giaNhap;
    private Size size;
    private MatHang matHang;
    private NhapHang nhapHang;

    public ChiTietNhapHang() {
    }

    public int getMatHangID() {
        return matHangID;
    }

    public void setMatHangID(int matHangID) {
        this.matHangID = matHangID;
    }

    public int getSizeID() {
        return sizeID;
    }

    public void setSizeID(int sizeID) {
        this.sizeID = sizeID;
    }

    public int getHoaDonID() {
        return hoaDonID;
    }

    public void setHoaDonID(int hoaDonID) {
        this.hoaDonID = hoaDonID;
    }

    public int getSoLuong() {
        return soLuong;
    }

    public void setSoLuong(int soLuong) {
        this.soLuong = soLuong;
    }

    public double getGiaNhap() {
        return giaNhap;
    }

    public void setGiaNhap(double giaNhap) {
        this.giaNhap = giaNhap;
    }

    public Size getSize() {
        return size;
    }

    public void setSize(Size size) {
        this.size = size;
    }

    public MatHang getMatHang() {
        return matHang;
    }

    public void setMatHang(MatHang matHang) {
        this.matHang = matHang;
    }

    public NhapHang getNhapHang() {
        return nhapHang;
    }

    public void setNhapHang(NhapHang nhapHang) {
        this.nhapHang = nhapHang;
    }

    public boolean equals(Object other) {
        if ((this == other)) {
            return true;
        }
        if ((other == null)) {
            return false;
        }
        if (!(other instanceof ChiTietNhapHang)) {
            return false;
        }
        ChiTietNhapHang castOther = (ChiTietNhapHang) other;

        return (this.getMatHangID() == castOther.getMatHangID())
                && (this.getSizeID() == castOther.getSizeID())
                && (this.getHoaDonID() == castOther.getHoaDonID());
    }
}
